package com.hfkh;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Code03 {
    public static void main(String[] args) {
        int Esum = 0;
        for (int i = 1; i <= 100; i++) {
            if (i % 2 ==1){//如果是奇数的话，跳过不累加
                continue;
            }
            Esum += i;
        }
        System.out.println("1-100的偶数和为："+Esum);
    }
}
